package com.gomokult.entity;

import java.sql.Timestamp;

/**
 * 评论类
 * @author 王沛哲
 */
public class Comment {
	private int commentID;		//评论ID
	private int game;			//对局编号
	private User publisher;		//评论发布者
	private Comment parentComment;	//父评论
	private Timestamp date;			//评论日期
	private String content;		//评论内容
	private int referencedRound;//对局回合引用
	/**
	 * 无参构造
	 */
	public Comment() {
		super();
	}

	
	/**
	 * 全参构造
	 */
	public Comment(int commentID, int game, User publisher, Comment parentComment, Timestamp date, String content, int referencedRound) {
		super();
		this.commentID = commentID;
		this.game = game;
		this.publisher = publisher;
		this.parentComment = parentComment;
		this.date = date;
		this.content = content;
		this.referencedRound = referencedRound;
	}
	
	/**
	 * 缺省构造
	 */
	public Comment(int game, User publisher, Comment parentComment, Timestamp date, String content, int referencedRound) {
		this.game = game;
		this.publisher = publisher;
		this.parentComment = parentComment;
		this.date = date;
		this.content = content;
		this.referencedRound = referencedRound;
	}

	/**
	 * 生成get/set方法
	 */
	
	public int getCommentID() {
		return commentID;
	}


	public void setCommentID(int commentID) {
		this.commentID = commentID;
	}


	public int getGame() {
		return game;
	}


	public void setGame(int game) {
		this.game = game;
	}


	public User getPublisher() {
		return publisher;
	}


	public void setPublisher(User publisher) {
		this.publisher = publisher;
	}


	public Comment getParentComment() {
		return parentComment;
	}


	public void setParentComment(Comment parentComment) {
		this.parentComment = parentComment;
	}


	public Timestamp getDate() {
		return date;
	}


	public void setDate(Timestamp date) {
		this.date = date;
	}


	public String getContent() {
		return content;
	}


	public void setContent(String content) {
		this.content = content;
	}

	public int getReferencedRound() {
		return referencedRound;
	}


	public void setReferencedRound(int referencedRound) {
		this.referencedRound = referencedRound;
	}

}
